//
//  ProductListCell.m
//  YangWifi
//
//  Created by zuoxueliangduyuanzhuo on 2017/7/8.
//  Copyright © 2017年 zuoxueliangduyuanzhuo. All rights reserved.
//

#import "ProductListCell.h"

@interface ProductListCell ()

@property (nonatomic ,weak) IBOutlet UILabel *packageNameL;

@property (nonatomic ,weak) IBOutlet UILabel *packageContentL;

@property (nonatomic ,weak) IBOutlet UILabel *packagePriceL;

@property (nonatomic ,weak) IBOutlet UIButton *payBtn;

@end

@implementation ProductListCell



- (void)setData:(ProductInfoModel *)data
{
    _data = data;
    _packageNameL.text = data.packageName;
    _packageContentL.text = data.packageContent;
    _packagePriceL.text = [NSString stringWithFormat:@"%@元",data.packagePrice];
}

- (IBAction)payClick:(id)sender
{
    if (self.recommendPayHandler) {
        self.recommendPayHandler(self.data);
    }
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    
    self.payBtn.layer.borderWidth = 1;
    self.payBtn.layer.borderColor = xlHexColor(@"#d8dde6").CGColor;
    self.payBtn.layer.masksToBounds = YES;
    self.payBtn.layer.cornerRadius = 2;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
